package com.order;

import java.sql.SQLException;
import java.util.List;

import com.vo.Order;
import com.vo.OrderDetail;

public interface IOrderDao {
	//为订单表以及订单明细表添加数据
	boolean insert(Order order,List<OrderDetail> listdetail)throws SQLException;
	
	//查询所有的订单
	List<Order> getAll(int page ,int pageCount)throws SQLException;
	//
	int getCount()throws SQLException;
	//修改订单
	int updateOrder(Order order)throws SQLException;
	//删除订单
	int deleteOrder(int orderId)throws SQLException;
}
